<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2020/6/3 0003
  Time: 10:50
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>user-add</title>
</head>
<body>
<form action="${pageContext.request.contextPath}/user/userAdd">
    <input type="text" name="username" placeholder="用户名"><br>
    <input type="password" name="password" placeholder="密码"><br>
    <input type="text" name="email" placeholder="邮箱"><br>
    <input type="text" name="telephone" placeholder="电话"><br>
    角色：
    <c:forEach items="${roleList}" var="role">
        <input type="checkbox" name="roleIds" value="${role.id}">${role.rolename}
    </c:forEach><br>
    <input type="submit" value="保存"> 返回
</form>
</body>
</html>
